home *** CD-ROM | disk | FTP | other *** search
- Path: usamrid.innovsoftd.com!news
- From: David Peterson <dpeterso@isd.net>
- Newsgroups: comp.lang.c
- Subject: Re: string search?
- Date: Thu, 28 Mar 1996 09:02:09 -0600
- Organization: Applied Systems, Inc.
- Message-ID: <315AA9F1.9D9@isd.net>
- References: <4jbmtk$78k@dfw-ixnews3.ix.netcom.com>
- NNTP-Posting-Host: pm-1-202.innovsoftd.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- Ricardo Mor wrote:
- >
- > How can I search for a string of characters within another string?
- > for example..
- >
- > string = "NEXT_TIME";
- >
- > string2 = "NEXT";
- >
- > how can I find string2 in string?
- >
- > Eddy...
-
- strstr(string, string2);
-
- Now tell me, was this a joke, or what?
-
- Dave
-